package com.gdut.gulimall.search.vo;

import lombok.Data;

import java.util.List;

/**
 * @author Drifiter
 * @create 2021-10-04 17:07
 * <p>
 * catalog3Id=225&keyword=小米&sort=saLeCount_asc&hasStock=0/1
 */
@Data
public class SearchParam {

    private String keyword;//页面传递过来的全文匹配关键字
    private Long catalog3Id;//三级分类id

//     sort=saLeCount_asc/desc
//     sort=skuPrice_asc/desc*sort=hotscore_asc/ desc
    private String sort;//排序条件
//    好多的过滤条件
//    hasStock(是否有货)、skuPrice区间、brandId、cataLog3Id、attrs*hasStock=E/1
//    shuPrice=1_5e日/_5eey5ee_*brandId=1
//    attrs=2_5存:6寸*

    private Integer hasStock;//是否只显示有货  0(无库存）1（有库存)
    private String skuPrice;//价格区间查询
    private List<Long> brandId;//按照品牌进行查询，可以多选
    private List<String> attrs;//按照属性进行筛选
    private Integer pageNum = 1; // 页码
    
    private String _queryString;//原生的所有查询条件

}
